package com.zxcl.dto;

import com.zxcl.domain.MemberAddr;
import com.zxcl.model.ShopOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("下订单的入参模型")
public class OrderSubmitDTO {

    @ApiModelProperty("用户默认的收货地址")
    private MemberAddr memberAddr;

    // 店铺的集合 （商品的集合）
    @ApiModelProperty("店铺的集合")
    private List<ShopOrder> shopOrders;

    // 商品总数
    @ApiModelProperty("商品总数")
    private Integer totalCount;

    @ApiModelProperty("商品金额")
    private BigDecimal totalMoney;

    @ApiModelProperty("实付金额")
    private BigDecimal actualTotal;

    @ApiModelProperty("运费金额")
    private BigDecimal transfee;

    @ApiModelProperty("折扣金额")
    private BigDecimal shopReduce;

    @ApiModelProperty("订单来源[0购物车 1 单品的]")
    private String orderEntry;

    @ApiModelProperty("买家备注")
    private String remarks;
}
